/**
 * 
 */
package tarena.netctoss.service.impl;

import java.util.List;

import tarena.netctoss.dao.OperationDao;
import tarena.netctoss.po.Operation;
import tarena.netctoss.service.OperationService;

/**
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-3-11
 */

public class OperationServiceImpl implements OperationService {

	private OperationDao operationDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * tarena.netctoss.service.OperationService#delete(tarena.netctoss.po.Operation
	 * )
	 */
	@Override
	public void delete(Operation operation) {
		operationDao.delete(operation);

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see tarena.netctoss.service.OperationService#findAll()
	 */
	@Override
	public List<Operation> findAll() {
		return operationDao.findAll();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see tarena.netctoss.service.OperationService#findById(java.lang.Integer)
	 */
	@Override
	public Operation findById(Integer id) {
		return operationDao.findById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * tarena.netctoss.service.OperationService#save(tarena.netctoss.po.Operation
	 * )
	 */
	@Override
	public void save(Operation operation) {
		operationDao.save(operation);

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * tarena.netctoss.service.OperationService#update(tarena.netctoss.po.Operation
	 * )
	 */
	@Override
	public void update(Operation operation) {
		operationDao.update(operation);
	}

	/**
	 * 
	 * @param operationDao
	 */
	public void setOperationDao(OperationDao operationDao) {
		this.operationDao = operationDao;
	}

}
